{% extends 'child1.html' %}

{% block head %}
    {{ super() }}
	<p>Python</p>
{% endblock %}

{% block content %}
    {% include 'child2_include.html' %}
	<p>Flask Content</p>
{% endblock %}

{# 宏定义：python函数 #}
{% macro person(name, age) %}
    <b>姓名：{{ name }}, 年龄：{{ age }}</b>
{% endmacro %}

{% block foot %}
    {{ person("坤坤", 25) }}

    {# 过滤器 #}
    <p>{{ name | capitalize }}</p>
    <p>{{ name | title }}</p>
    <p>{{ name | upper }}</p>
    <p>{{ name | lower }}</p>
    <p>{{ name | upper | first | lower }}</p>
{% endblock %}





















